projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bbdd5d
)
Cope if a VIF is not attached to a network.
author
Ewan Mellor
<ewan@xensource.com>
Thu, 28 Dec 2006 15:26:45 +0000
(15:26 +0000)
committer
Ewan Mellor
<ewan@xensource.com>
Thu, 28 Dec 2006 15:26:45 +0000
(15:26 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendNetwork.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendNetwork.py
b/tools/python/xen/xend/XendNetwork.py
index be0d5cedd56db74ce9182672cbec57da7e2498df..5e606957f18af30b3a000b7d6207204ac87f9f01 100644
(file)
--- a/
tools/python/xen/xend/XendNetwork.py
+++ b/
tools/python/xen/xend/XendNetwork.py
@@
-90,7
+90,7
@@
class XendNetwork:
vifs = vm.get_vifs()
for vif in vifs:
vif_cfg = vm.get_dev_xenapi_config('vif', vif)
- if vif_cfg
['network']
== self.uuid:
+ if vif_cfg
.get('network')
== self.uuid:
result.append(vif)
return result